package cn.etynit.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author etyn
 * @since 2022-12-09
 */
@TableName("t_user_register_log")
public class UserRegisterLog extends Model<UserRegisterLog> {

    private static final long serialVersionUID = 1L;
    /**
     * 账号类型常量
     */
    public static final Integer USER_NUMBER = 1;
    public static final Integer USER_FAMILY_NUMBER = 2;
    public static final Integer USER_LESSEE_NUMBER = 3;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 注册时间
     */
    @TableField("registration_date")
    private Date registrationDate;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 用户类型  1：业主，2：业主家成员，3：租户
     */
    @TableField("user_type")
    private Integer userType;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(Date registrationDate) {
        this.registrationDate = registrationDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserRegisterLog{" +
        ", id=" + id +
        ", registrationDate=" + registrationDate +
        ", userId=" + userId +
        ", userType=" + userType +
        "}";
    }
}
